package com.xmj.ms.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xmj.common.annotation.Excel;
import com.xmj.common.core.domain.BaseEntity;

/**
 * 服务对象 ServiceTypes
 *
 * @author ohh
 * @date 2024-04-21
 */
public class ServiceTypes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 服务类型ID */
    private Long servicetypeID;

    /** 服务名称 */
    @Excel(name = "服务名称")
    private String serviceName;

    /** 服务描述 */
    @Excel(name = "服务描述")
    private String descripTion;

    /** 基础价格 */
    @Excel(name = "基础价格")
    private BigDecimal basePrice;

    /** 平均服务时长 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "平均服务时长", width = 30, dateFormat = "yyyy-MM-dd")
    private Date AverageDuration;

    public void setServicetypeID(Long servicetypeID)
    {
        this.servicetypeID = servicetypeID;
    }

    public Long getServicetypeID()
    {
        return servicetypeID;
    }
    public void setServiceName(String serviceName)
    {
        this.serviceName = serviceName;
    }

    public String getServiceName()
    {
        return serviceName;
    }
    public void setDescripTion(String descripTion)
    {
        this.descripTion = descripTion;
    }

    public String getDescripTion()
    {
        return descripTion;
    }
    public void setBasePrice(BigDecimal basePrice)
    {
        this.basePrice = basePrice;
    }

    public BigDecimal getBasePrice()
    {
        return basePrice;
    }
    public void setAverageDuration(Date AverageDuration)
    {
        this.AverageDuration = AverageDuration;
    }

    public Date getAverageDuration()
    {
        return AverageDuration;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("servicetypeID", getServicetypeID())
            .append("serviceName", getServiceName())
            .append("descripTion", getDescripTion())
            .append("basePrice", getBasePrice())
            .append("AverageDuration", getAverageDuration())
            .toString();
    }
}
